<!doctype html>
<html>
<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width,viewport-fit=cover,initial-scale=1,maximum-scale=1,user-scalable=no,minimal-ui">
	<meta name="format-detection" content="telephone=no,email=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="description" content="还卡超人">
	<meta name="keywords" content="还卡超人,拍拍贷">
	<title>算算省多少</title>
	<link rel="stylesheet" href="//m.ppdaicdn.com/act/app/hkcr/help/css/style.css" type="text/css">
</head>
<body>
	<section>
		<img src="//m.ppdaicdn.com/act/app/hkcr/help/images/s1.png" class="s1" />
		<div class="pos"><img src="//m.ppdaicdn.com/act/app/hkcr/help/images/s2.png" class="s2" /></div>
		<div class="btnPos">
			<a class="btn" onclick="goLoan()">我要借款</a>
		</div>
	</section>
	<script>
		var injectWebViewJavascriptBridge = function (callback) {
			if (window.WebViewJavascriptBridge) {
				return callback(WebViewJavascriptBridge);
			}
			// for ios
			if (window.WVJBCallbacks) {
				return window.WVJBCallbacks.push(callback);
			}
			window.WVJBCallbacks = [callback];
			var WVJBIframe = document.createElement('iframe');
			WVJBIframe.src = 'wvjbscheme://__BRIDGE_LOADED__';
			WVJBIframe.style.display = 'none';
			document.body.appendChild(WVJBIframe);
			setTimeout(function () {
				document.body.removeChild(WVJBIframe);
			}, 0);
			// for android
			document.addEventListener('WebViewJavascriptBridgeReady', function () {
				callback(WebViewJavascriptBridge);
			}, false);
		};
		var injectWebViewJavascriptBridgeCallback = function (bridge) {
		};
		injectWebViewJavascriptBridge(injectWebViewJavascriptBridgeCallback);
		var goLoan = function () {
			try {
				WebViewJavascriptBridge.callHandler('goLoan', {
					'code': 1,
					'name': '进入发标流程',
					'data': {}
				});
			} catch(ex) {
				try {
					AppBridge.goLoan();
				} catch (ex) {
					alert('借款失败，请在APP中打开重试');
				}
			}
		};
	</script>
</body>
</html>
